# _*_ coding: utf-8 _*_
# @Time : 2025-10-20 13:46
# @Author : wf

import pyautogui
import pygetwindow as gw
import time
import ctypes
import pywinauto


# 每次延迟 1s
pyautogui.PAUSE = 1
pyautogui.FAILSAFE = False

time.sleep(5)
# all_wins = gw.getAllTitles()
# print(all_wins)
# lock_window = gw.getWindowsWithTitle('Program Manager')[0]
#
#
# lock_window.activate()
#
# pyautogui.write("")
#
# pyautogui.press('enter')

ctypes.windll.user32.LockWorkStation()
time.sleep(5)
pyautogui.click()
pyautogui.typewrite("")
pyautogui.press('enter')

